package projects.android.sms.object;

import java.util.ArrayList;

/**
 * Simple object representing a conversation.
 * 
 * @author Thomas Jaeger
 * @author Mario Kraml
 * @author Tassilo Posegga
 * @author Robert Schenkenfelder
 * 
 */
public class UserRecord {

	private String phoneNumber;
	private ArrayList<SMS> messages;

	/**
	 * Creates a new conversation object with the given phone number.
	 * 
	 * @param phoneNumber
	 */
	public UserRecord(String phoneNumber) {
		this.phoneNumber = phoneNumber;
		this.messages = new ArrayList<SMS>();
	}

	public ArrayList<SMS> getMessages() {
		return messages;
	}

	public void addSMS(SMS sms) {
		this.messages.add(sms);
	}

	public void setMessages(ArrayList<SMS> messages) {
		this.messages = messages;
	}

	public String getUsername() {
		return phoneNumber;
	}

	public void setUsername(String username) {
		this.phoneNumber = username;
	}
}
